package shape;

/**
 * Created by thoughtworks on 24/7/14.
 */
public abstract class Triangle extends Shape{
    int base;
    int height;

    protected Triangle(int base, int height) {
        if(base < 0 || height < 0)
        {
            throw new RuntimeException("Triangle parameters cannot be negative!");
        }

        this.base = base;
        this.height = height;
    }
}
